<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="./jquery-3.6.0.min.js"></script>
    <script type="text/javascript">
        $(function() {

            var divObjJQ = $("#myDiv");

            alert(divObjJQ.html());


            // 将一个Jquery对象转DOM对象

            // 方式一:
            var divObjJS = divObjJQ[0];

            alert(divObjJS.innerHTML);

            // 方式二:
            var divObjJS2 = divObjJQ.get(0);
            alert(divObjJS2.innerHTML);

        });
    </script>

</head>

<body>
    <div id="myDiv">
        HelloWorld,Text,Tomcat
    </div>
</body>

</html>